import plugin from '../../lib/plugins/plugin.js'
import cfg from '../../lib/config/config.js'
/*
戳一戳会发送文字同时也会发送对应的语音！
但是发送语音需要ffmpeg
如果你不会装ffmpeg
Linux系统可以用脚本解决
bash <(curl -sL https://gitee.com/haanxuan/yzai-pd/raw/master/Xf.sh)
Windows系统可以看教程
https://hanxuan.cc/blogs/ffmpeg.html
*/
const _path = process.cwd();
/*
首发群453694434
本插件免费公开外传！
禁止任何交易行为
如果你是交易获得
请及时退款并举报发布者！
*/

export class example extends plugin {
  constructor () {
    super({
      /** 功能名称 */
      name: '胡桃语音戳一戳',
      /** 功能描述 */
      dsc: '简单开发示例',
      /** https://oicqjs.github.io/oicq/#events */
      event: 'notice.group.poke',
      /** 优先级，数字越小等级越高 */
      priority: -114514,
      rule: [
        {
          /** 命令正则匹配 */
          reg: '.*',
          /** 执行方法 */
          fnc: 'chuochuo'
        }
      ]
    })
  }
 
  

  async chuochuo (e) {
    

    if(e.target_id == cfg.qq){
      
    /*这个是一个随机数*/
    let num = Math.ceil(Math.random() * 51);
    /*
    前面的数字就是对应的触发数字，随机到什么数字就触发对应的发送内容
    音频怎么获取可以看B站教程
    【超简单之一键下载原神角色语音,你还在录屏提取音频吗?】 https://www.bilibili.com/video/BV1a34y1f7f8/?share_source=copy_web&vd_source=637815ec2b4a6ad7b556be6113eea381
    如果被删除了就自己找找吧，挺简单的
    复制粘贴就可以自己写想要的角色戳一戳了
    */
 if(num == 1){
  e.reply(`唷，找本堂主有何贵干呀？嗯？你不知道吗，往生堂第七十七代堂主就是胡桃我啦！嘶，不过瞧你的模样，容光焕发，身体健康，嗯…想必是为了工作以外的事来找我，对吧？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/3f/73ne3fbhw4emno2z3ss6wf7zjdmpph9.mp3")
  e.reply(msg)
}
if(num == 2){
  e.reply(`不如去我那儿喝杯茶？嘿~`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/cd/mh8ksq83vyqgm9m065emzzstw9skjaa.mp3")
  e.reply(msg)
}
if(num == 3){
  e.reply(`一个客户，两个客户，三个客户…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/7/77/tvyofehz8s6msfyrlui81yk3shng2jb.mp3")
  e.reply(msg)
}
if(num == 4){
  e.reply(`咳咳…太阳出来我晒太阳，月亮出来我晒月亮咯~`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/01/2fnjqvot4urhojue61nnct93s94kpg4.mp3")
  e.reply(msg)
}
if(num == 5){
  e.reply(`哎呀…麻烦喽。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/84/cy99g7me4ey8as8khsvsnbfddtd7l72.mp3")
  e.reply(msg)
}
if(num == 6){
  e.reply(`打雷啦，起身啦。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c2/12v7bbiqbyl826n2edjinxolaccatws.mp3")
  e.reply(msg)
}
if(num == 7){
  e.reply(`哇，是雪！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/e/e2/0isxpqf4zpcm4fanbp63oc5mqotcfw6.mp3")
  e.reply(msg)
}
if(num == 8){
  e.reply(`嗯，真舒服。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/1/1a/22l2uyt435ft1zrk7lq26q8unvbfi10.mp3")
  e.reply(msg)
}
if(num == 9){
  e.reply(`欸？…唉，帽子都要吹飞了。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/7/78/4fcrr28xm04kl0jo741yxcjmz0v217j.mp3")
  e.reply(msg)
}
if(num == 10){
  e.reply(`嗯~早起身体好，晚睡人会飘。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/8d/n8gei38e7k4v8os3scp7uormhc633ib.mp3")
  e.reply(msg)
}
if(num == 11){
  e.reply(`哟！中午好呀，吃了吗？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/d/d7/kmv4y3qxzawo4lvza5sto2hqs4asxcj.mp3")
  e.reply(msg)
}
if(num == 12){
  e.reply(`嘻嘻，月亮出来喽~咱也出门吧。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c8/9p3stmpojfh2pmodmvi6srkjo55e9l9.mp3")
  e.reply(msg)
}
if(num == 13){
  e.reply(`哦，困了吗？那你好好休息，我一个人四处转转。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/6/6a/q6ymtmnso0jo7ee0k1flsrik7hsoriu.mp3")
  e.reply(msg)
}
if(num == 14){
  e.reply(`胡桃的胡是胡吃海喝的胡，胡桃的桃却不是淘气的淘！嘿嘿…不、不好笑吗？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/5/56/fjutt3fmqzb4fxbxqp9zbuqu7pmes24.mp3")
  e.reply(msg)
}
if(num == 15){
  e.reply(`变个戏法给你看，瞧好了哦…火！然后…嚯！火蝴蝶！呼，飞啦——哈哈。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c4/prsi3chthxjbjree9f3w8e46b4cckoe.mp3")
  e.reply(msg)
}
if(num == 16){
  e.reply(`你到处旅行，一定见多识广。有空也给我讲讲你自己的故事吧。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/9/9b/kwcppgh64xx830viwn7sge236e55c46.mp3")
  e.reply(msg)
}
if(num == 17){
  e.reply(`白天你尽管到处跑，晚上可得小心点。我不在的时候，务必谨慎行动。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/0e/0lqal4lydx4k5nz8xps3fg08gxyzi3u.mp3")
  e.reply(msg)
}
if(num == 18){
  e.reply(`需要帮手吗？需要帮手吗？我来啦！若你需要帮助，胡桃我定当全力以赴，绝不推辞。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/6/6d/4hls20hljo2hz799sfps4rpfmldqvdt.mp3")
  e.reply(msg)
}
if(num == 19){
  e.reply(`战斗是件麻烦事，对我来说，它不是目的而是手段。用手段来达到目的，用战斗来维护不愿让步的东西。就这方面而言，我和你是一样的。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c9/doia9xkvdig5vq8wg6qm7lvqvj5649t.mp3")
  e.reply(msg)
}
if(num == 20){
  e.reply(`「神之眼」…「神之眼」？唔，这东西，随缘就好。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/d/d4/p5o92bxl1wfo591z9vptcz6gjt95bhs.mp3")
  e.reply(msg)
}
if(num == 21){
  e.reply(`受人之托，忠人之事。我们往生堂性质特殊，肩负着双倍责任，所以，一定要让两个世界的人都满意才行。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/5/5c/1lao7ofguu7lbxkrdr7ir6o6hn6544y.mp3")
  e.reply(msg)
}
if(num == 22){
  e.reply(`有些花草只长在阴气重月光多的地方，你见过吗？没有？那下次带你见识见识。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/b/bd/iczx29teywtthmoahgmhz5ayqs0k4ii.mp3")
  e.reply(msg)
}
if(num == 23){
  e.reply(`钟离长得那么年轻，性格倒像是个老古董，什么都懂，却什么都不关心，他该不会…？嘻嘻…
  唉，算了，随他去吧。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/e/e7/3drf7i78ayusd96q35k4m6oluvsx8fq.mp3")
  e.reply(msg)
}
if(num == 24){
  e.reply(`看到七七了吗？快告诉我她在哪，我要把她藏起来，嘿！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/9/92/2zb8j3f7fc1l9kqfhwkrlfnkmcz8jo0.mp3")
  e.reply(msg)
}
if(num == 25){
  e.reply(`白术？哼，麻烦的家伙。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a6/2kwijgrpbl5onfic6t05zzc7moq0kir.mp3")
  e.reply(msg)
}
if(num == 26){
  e.reply(`天权凝光，富甲一方；明眸善睐，桃羞杏让；目达耳通，百了千当！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/f/fd/pk836bomrt9wpikb7f6p05av4jgslsy.mp3")
  e.reply(msg)
}
if(num == 27){
  e.reply(`北斗姐可是璃月名人，她不认识我没关系，我认识她就行。啊~真想和她交个朋友啊。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/85/6nmlcmh6ybn2wf6jqiacn9cpsq0eto6.mp3")
  e.reply(msg)
}
if(num == 28){
  e.reply(`听说行秋少爷在写书？话本还是怪谈呢？好想把平日遇见的杂事说给他听，写成书一定很好看吧。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/36/8100s5vd225243k472gl0hplm9eb5uc.mp3")
  e.reply(msg)
}
if(num == 29){
  e.reply(`纯阳正气，阴阳合一？啧啧，嘶…没想到世上真有这种体质的人。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/7/71/k0huqtcfrs442ppkif43tqqd14ks12k.mp3")
  e.reply(msg)
}
if(num == 30){
  e.reply(`仙家的事，我怎么知道？哎呀呀，天机不可泄露。你就别问我啦。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/1/12/oo9d8238aoubdp6cz87c1h9t2aa8c9n.mp3")
  e.reply(msg)
}
if(num == 31){
  e.reply(`「玉衡」刻晴啊，嘶…是个很难打交道的人呢。嘿嘿，瞧那一本正经的样子，真想逗逗她。哎呦，她应该不会用剑敲我头吧？不会的吧？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c4/g5pmznrh5rc370a4r8maocz71l64qop.mp3")
  e.reply(msg)
}
if(num == 32){
  e.reply(`香菱可好玩了，一碰就跳，特别容易被唬住。做我们这行，最喜欢这种人喽。不过也得注意分寸，毕竟，锅巴会替香菱出头呢。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/e/e6/cal1jjb94h3g2lezmjhx6x3xxbhfq95.mp3")
  e.reply(msg)
}
if(num == 33){
  e.reply(`云堇她在正式场合很优雅，私底下却非常容易亲近哦！上次我跟她打了个赌，输的人要用自己习惯的唱法唱对方填的词。哎呀呀，戏腔版的丘丘谣，你真该听一次！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/07/7jh4rm2nlnsqoa6vka8mmmut9sfa6tj.ogg")
  e.reply(msg)
}
if(num == 34){
  e.reply(`她可真是个有意思的人呐，跟别人都不一样。你说，要是我从现在开始天天吃仙草、喝山露，会不会也变成她那么不染红尘的样子？嘿嘿…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/7/7e/taey1g00bw21y23fngd6s94gc46b4hg.ogg")
  e.reply(msg)
}
if(num == 35){
  e.reply(`大丘丘病了，二丘丘瞧；三丘丘采药，四丘丘熬；五丘丘死了，六丘丘抬~
  欸…呼。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/2/2d/pfpqhnpnlf07hwdjud6f3ilsg840osm.mp3")
  e.reply(msg)
}
if(num == 36){
  e.reply(`小巷派暗黑打油诗人，正是本人！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/2/2f/ci17kr8v321lp2ghkoenat3c1oqjsns.mp3")
  e.reply(msg)
}
if(num == 37){
  e.reply(`若要我说，往生堂的工作既不困难也不可怕，只是麻烦而已。可惜旁人理解不了，见到咱们夜里出工，总是有些惧怕。唉，是他们不懂啊。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/4/46/su27lo1dp1ce0hktg4fs3cxhvd9kgvd.mp3")
  e.reply(msg)
}
if(num == 38){
  e.reply(`我是「往生堂」第七十七代堂主，我爷爷是第七十五代。我经手的第一份工作，就是替爷爷办葬礼。是不是很意外啊？哎呀，不知不觉就在这行做了好些年，时间过得可真快。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/5/58/pz3c4cb02xlpasaaxm84gpbpsnk4kjk.mp3")
  e.reply(msg)
}
if(num == 39){
  e.reply(`阴阳有序，命运无常。死亡难以预测，却也有它的规矩。记住了，无论何时何地，无论有何原因，人都不该轻易挑衅「死」之一事。唯有认识它、尊重它，才能明白活着的价值。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/e/e4/o2epwmibriut8c6l7fuewv4l2e3yrj7.mp3")
  e.reply(msg)
}
if(num == 40){
  e.reply(`天清海阔，皓月凌空，此情此景，正适合作诗一首。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/9/9d/qbq04xabrowdptupkv3fz2ulw84ubcg.mp3")
  e.reply(msg)
}
if(num == 41){
  e.reply(`唉…真想找些新乐子，无所事事比死亡可怕多了。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/03/ph9ongvx2ikhvgfa5uy6dm2n21fjpq6.mp3")
  e.reply(msg)
}
if(num == 42){
  e.reply(`♪啦啦啦啦~吃水煮鱼配虾饺啦~`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/1/12/h0buvyu6mtd357ldvd8h19ziopdyqst.mp3")
  e.reply(msg)
}
if(num == 43){
  e.reply(`清心炒史莱姆凝液…呕…这是香菱对我的复仇吗？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/8c/36qiduvdczfici65noav3gmq4s60izw.mp3")
  e.reply(msg)
}
if(num == 44){
  e.reply(`甚好甚好。本堂主现在就来为这道菜肴题诗一首——`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/07/dstjhbppb0v8dhjxnrmt77ibccz1zig.mp3")
  e.reply(msg)
}
if(num == 45){
  e.reply(`真不用我来帮忙吗？做一道送一道哦！`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/e/ec/k6he3c6qchxbpg2vagheskxjdrkgcti.mp3")
  e.reply(msg)
}
if(num == 46){
  e.reply(`噫…这是什么东西呀？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/2/24/569v98k1dtxzsel5k4ik9sr7bs8tcxv.mp3")
  e.reply(msg)
}
if(num == 47){
  e.reply(`今夜天星璀璨，月相壮丽，想必是个好日子。嘶，待我一算…嗯~我知道我知道，是你的生辰！哎呀，真是个好日子。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/2/2c/f1mcgur6tybix9kgvug129m58g4cvn8.mp3")
  e.reply(msg)
}
if(num == 48){
  e.reply(`哦呀？哦呀呀？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a7/1bxid2ud8xdv491mpn6z1nf598l6bw6.mp3")
  e.reply(msg)
}
if(num == 49){
  e.reply(`嗯~真不错，谢啦。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/07/adv64oc93v6r8lgzqa22jbgy0bch3a4.mp3")
  e.reply(msg)
}
if(num == 50){
  e.reply(`没想到没想到，胡桃我现在力如泉涌，心似雄鹰，非常有自信哦。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/3f/elvpyik4ohae1oosyatobtf6fz23b4i.mp3")
  e.reply(msg)
}
if(num == 51){
  e.reply(`力量若达到极限，接着考验的便是人心。多亏了你，我才能来到这片未曾踏足的领域。在这里，心和灵魂就像一片云彩…生老病死，天地万象，尽在吾辈。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/1/19/spt6d44bikb46mjqm2im25cx5k4dhkl.mp3")
  e.reply(msg)
}
  return true
  }
}
}

